//
//  NSMCitySelectorController.h
//  Helper
//
//  Created by nsm on 2019/4/8.
//  Copyright © 2019 nani. All rights reserved.
//

#import <NSMKit/NSMKit.h>

NS_ASSUME_NONNULL_BEGIN

/** 基础配置(CitySelector简称CS) */
typedef NS_ENUM(NSInteger, NSMCSMoudle) {
    NSMCSMoudleNormal   = 0,    //!< 正常数据
    NSMCSMoudleDistrict,        //!< 已选城市区县
    NSMCSMoudleSelect ,         //!< 已选城市
    NSMCSMoudleCurrent,         //!< 当前定位城市
    NSMCSMoudleRecent,          //!< 最近访问城市
    NSMCSMoudleHot,             //!< 热门城市
};

@interface NSMCitySelectorController : NSMTableViewController
/**
 NSMCSMoudle添加顺序直接影响显示顺序
 默认@[@(NSMCSMoudleNormal)]
 */
@property (nonatomic) NSArray<NSNumber *> *moudles;
/** 选中回调 */
@property (nonatomic, copy) void(^didSelectCity)(CityModel *city);

+ (instancetype)sharedInstance;

@end

NS_ASSUME_NONNULL_END
